home *** CD-ROM | disk | FTP | other *** search
- DATE FILTER PROGRAM
- This is a quick and dirty implementation of something I've always
- wanted -- an easy way to see new files or old files on a system.
- Thru the use of pipes and redirection this utility and the CLEAR
- utility below can be VERY useful tools for maintaining large
- numbers of files.
- The program is a filter for output of Norton's Filefind command.
- This command searchs the entire directory structure for a particular
- file or wild-card. The filters I've developed take this output
- the convert or scan it for additional matching criteria. The
- date filter program with match greater than, less than or equal to
- a given creation date. For example:
- To output all files created after Feb 1st 87 type:
- ff | datefilt 3 02/01/87
- The '3' represents a greater than (>) relation
- 1 represents less than (<)
- 2 represents equal to (=)
- To output all *.bak files created before this month type:
- ff *.bak | datefilt 1 02/01/87
- All *.doc files created today
- ff *.doc | datefilt 2 02/05/87
- All *.exe files created this year could be do by typing:
- ff *.exe | datefilt 3 01/01/87 | datefilt 1 12/30/87
-
-
- CLEAR FILTER PROGRAM
- The clear filter will take filefind output and convert it to
- a batch file format including a DEL in front of each file in
- the output. For example to create a batch file to clear any
- *.bak file type:
- ff *.bak | clear > temp.bat
- You should be in the root directory before typing this command.
- Note that no files will be deleted until temp.bat is run.
- The two filters may be combined for added power. For example to
- delete any backup files before the beginning of the month is:
- ff *.bak | datefilt 1 02/01/87 | clear > temp.bat
- Running temp.bat will remove the desired files.
-
-
- Have fun .....
-
-